home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Hello / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  2.4 KB  |  85 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #define FRAME_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWFRAME_H
  16. #include "FWFrame.h"
  17. #endif
  18.  
  19. #ifndef FWDRGDRP_H
  20. #include "FWDrgDrp.h"
  21. #endif
  22.  
  23. //========================================================================================
  24. // Forward Declarations
  25. //========================================================================================
  26.  
  27. class CHelloContent;
  28.  
  29. //========================================================================================
  30. // CHelloFrame
  31. //========================================================================================
  32.  
  33. class CHelloFrame : public FW_CFrame, public FW_MDroppableFrame, public FW_MDraggableFrame
  34. {
  35. //----------------------------------------------------------------------------------------
  36. //    Initialization/Destruction
  37. //
  38.   public:
  39.   
  40.     FW_DECLARE_AUTO(CHelloFrame)
  41.     
  42.     CHelloFrame(Environment* ev, 
  43.                 ODFrame* odFrame, 
  44.                 FW_CPresentation* presentation, 
  45.                 CHelloContent* content);
  46.  
  47.     virtual ~CHelloFrame();
  48.     
  49. //----------------------------------------------------------------------------------------
  50. //    Inherited API
  51. //
  52.     virtual FW_Handled            DoAdjustMenus(Environment* ev,
  53.                                       FW_CMenuBar* menuBar, 
  54.                                       FW_Boolean hasMenuFocus,
  55.                                       FW_Boolean isRoot);
  56.  
  57.     virtual FW_Handled            DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  58.  
  59.     virtual void                Draw(Environment *ev, 
  60.                                      ODFacet* odFacet, 
  61.                                      ODShape* invalidShape);
  62.  
  63.     virtual void                FrameShapeChanged(Environment* ev);
  64.     virtual void                CreateSubViews(Environment* ev);
  65.  
  66.     virtual FW_CDragCommand*     NewDragCommand(Environment *ev, 
  67.                                             FW_CFrame* theFrame,
  68.                                             const FW_CMouseEvent& theMouseEvent);
  69.     virtual FW_CDropCommand*     NewDropCommand(Environment *ev,
  70.                                             FW_CFrame* frame,
  71.                                             ODDragItemIterator* dropInfo, 
  72.                                             ODFacet* odFacet, 
  73.                                             const FW_CPoint& dropPoint);
  74.  
  75.     virtual FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  76.  
  77. //----------------------------------------------------------------------------------------
  78. //    Data Members
  79. //
  80.   private:
  81.     CHelloContent*         fHelloContent;
  82. };
  83.  
  84. #endif
  85.